package cn.eng.org.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.eng.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 实体类： 店铺
 */
@Data
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    @NotEmpty
    @Excel(name = "店铺名称",width = 20)
    private String name;
    /**
     * 店铺座机
     */
    @NotEmpty
    @Excel(name = "店铺座机",width = 20)
    private String tel;
    /**
     * 入驻时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入驻时间",width = 20,exportFormat = "yyyy-MM-dd")
    private Date registerTime;
    /**
     * 店铺状态：0待审核，1审核通过待激活，2激活成功，-1驳回
     */
    private Integer state;
    /**
     * 店铺地址
     */
    @NotEmpty
    @Excel(name = "店铺地址",width = 20)
    private String address;
    /**
     * 店铺logo
     */
    @NotEmpty
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;

    private Employee admin;

}
